package com.dson.dao;

import com.dson.pojo.Resume;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ResumeDao extends JpaRepository<Resume,Long>, JpaSpecificationExecutor<Resume> {

    @Query("from Resume where id = ?1 ")
    public List<Resume> findbyId(Long id);

    @Query("from Resume where 1=1 ")
    public List<Resume> queryAll();

    public void deleteResumeById(Long id);

}
